<%@page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy"%>
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<%@page import="dto.boardDTO"%>
<%@page import="vo.boardVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Input_result</title>
<link rel="stylesheet" href="../css/board.css">
<script src = '../js/board.js'></script>
</head>
<body>

<%
	boardVO v = new boardVO(request);
	
	boardDTO dto = new boardDTO(); // 매개변수 있는 것을 하나 더 만듦. 
	
	dto.file(v);
	
// 	System.out.println("카테고리값" + v.getB_category());
// 	System.out.println("사번" + v.getE_number());
// 	System.out.println("아이디값" + v.getM_id());
// 	System.out.println("새로운 게시판 넘버" + v.getB_tempNum());
	
	out.print("카테고리값" + v.getB_category());
	out.print("사번" + v.getE_number());
	out.print("아이디값" + v.getM_id());
	out.print("새로운 게시판 넘버" + v.getB_tempNum());
	out.print("파일이름" + v.getB_fileUrl());
%>

<form action="" name="hiddenFrm" method="post">
	<input type="hidden" name="nowPage" value="<%=v.getNowPage()%>">
	<input type='hidden' name='b_category' value="<%=v.getB_category()%>"/>
	<input type="hidden" name="find" value="<%=v.getFind() %>">
</form>
<h1>게시판 입력결과 </h1>
<hr>
<%
if(dto.insert(v)){
	out.print("글 입력에 성공했습니다.");
}else{
	out.print("글 입력에 실패하였습니다.");
}
%>
<br>
<hr>
	<input type="button" value="목록으로" id="btnList"/>
</body>
<script>inputInit();</script>
</html>
